
<template>
  <!-- 已重复入住页面警告框 -->
  <div v-show="repeatPopBool" class="model-box" @click.stop="closeModel1">
    <div class="con-box" @click.stop="didi">
      <img src="../../../../assets/img/pop/tanhao.png">
      <p>您已入驻品牌XX，不能重复入驻！</p>
      <div class="button-box">
        <button @click="forBrand">查看品牌</button>
        <button @click="haode">确定</button>
      </div>
      <i class="iconfont iconlogin_btn_shutdown close" @click="closeModel1" />
    </div>
  </div>
</template>

<script>
export default {
  data() {
    return {
      modelBool: false
    }
  },
  computed: {
    repeatPopBool() {
      return this.$store.state.template1.repeatPopBool
    }
  },
  methods: {
    closeModel1() {
      this.$store.commit('template1/repeatPopBool', false)
    },
    didi() {

    },
    haode() {
      this.$store.commit('template1/repeatPopBool', false)
    },
    forBrand() {
      this.$router.push('/vMain/allBrand/brand2C')
      this.$store.commit('template1/repeatPopBool', false)
    }
  }
}
</script>

<style lang="scss" scoped>
.model-box{
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, .5);
  padding-top: 200px;
  color: #333;
  z-index: 99;
  >.con-box{
    position: relative;
    width: 584px;
    height: 375px;
    margin: 0 auto;
    background-color: #fff;
    padding-top: 66px;
    >img{
      display: block;
      margin: 0 auto;
      height: 65px;
      margin-bottom: 41px;
    }
    >p{
      text-align: center;
      width: 100%;
      font-size: 24px;
      color: #333;
      margin-bottom: 69px;
    }
    >.button-box{
      width: 381px;
      height: 42px;
      display: flex;
      flex-flow: row nowrap;
      justify-content: space-between;
      align-items: center;
      margin: 0 auto;
      >button{
        display: block;
        width: 170px;
        height: 42px;
        line-height: 42px;
        text-align: center;
        font-size: 18px;
        cursor: pointer;
        border-radius: 4px;
      }
      >button:first-child{
        color: #fff;
        background-color: #417AEF;
      }
      >button:last-child{
        color: #666;
        background-color: #fff;
        border: 1px solid #DBDBDB;
      }
    }
    >i{
      position: absolute;
      top: 21px;
      right: 21px;
      z-index: 101;
      font-size: 30px;
      cursor: pointer;
      color: #999;
    }
  }
}
</style>

